const app = getApp()
Component({
    //初始默认为当前日期
    properties: {
			listArr: {
				type: Array,
				value: []
			},
			listdata: {
				type: Array,
				value: []
			},
    },

    // 组件的初始数据
    data: {

		},
		attached(){
			// 第二种方式通过组件的生命周期函数执行代码app.globalData.url + 
			console.log("发起请求获取数据");
		},
    // ready: function () {
			// this.today();
			// this.api()
    // },
    methods: {
			but(e){
				console.log('but',e)
				let pid = e.currentTarget.dataset.id
				wx.navigateTo({
					url: '/HomePage/prisedetail/prisedetail?id='+pid,
				})
			},
			work(e){
				console.log('work',e)
				let did = e.currentTarget.dataset.id
				wx.navigateTo({
					url: '/HomePage/workdetail/workdetail?id='+did,
				})
			},
    }
})